home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
usenet
/
sources
/
volume90
/
util
/
xsize_1.0
/
makefile
< prev
next >
Wrap
Makefile
|
1990-03-03
|
1KB
|
57 lines
OBJS=xsize.o handler.o stub.o misc.o
EXE=xsize
SYMS=$(EXE).sym
SYMSRC=$(EXE).h
QUICKSYMS=ram:$(SYMS)
# Aztec
CCFLAGS=-q +I$(QUICKSYMS) +L
ASFLAGS=
LNFLAGS=
LNOBJS=detach.o32 -lc32
SYMFLAGS=+l +h$(SYMS) -o ram:null.o
CC=cc
AS=as
LN=ln
#Lattice
#CCFLAGS=-v -H$(QUICKSYMS) # -O
#ASFLAGS=-iLattice:Asm-include/
#LNFLAGS=NOALVS SC SD ND TO $(EXE) FROM lib:cback.o
#LNOBJS=LIB lib:lc.lib lib:amiga.lib
#SYMFLAGS=-ph -o$(SYMS)
#CC=lc
#AS=asm
#LN=blink
.c.o:
$(CC) $(CCFLAGS) -o$*.o $*.c
.s.o:
$(AS) $(ASFLAGS) $*.s
all: $(SYMS) $(QUICKSYMS) $(EXE)
# Lattice link
#$(EXE): $(OBJS) $(EXE).lnk
# blink with $(EXE).lnk
#Aztec link
$(EXE): $(OBJS)
$(LN) $(LNFLAGS) $(OBJS) $(LNOBJS)
$(EXE).lnk:
echo >ram:l1 "$(LNFLAGS)"
echo >ram:l2 "$(OBJS)"
echo >ram:l3 "$(LNOBJS)"
join ram:l1 ram:l2 ram:l3 as $(EXE).lnk
delete ram:l1 ram:l2 ram:l3
$(SYMS): $(SYMSRC)
copy $(SYMSRC) ram:temp.c
$(CC) $(SYMFLAGS) ram:temp.c
delete ram:temp.c
$(QUICKSYMS): $(SYMS)
copy $(SYMS) $(QUICKSYMS)